package kau.vo;

public class AttendInfoAnalysis {

	private String custId;
	private String custName;
	private int absenceCnt; //결석수
	private int earlyLeavingCnt; // 조퇴수
	private int lateCnt; // 지각수
	private int earlylateCnt; // 지각+조퇴수
	private int nomalCnt;  //정상출석수
	private float attendGrade; // 출석계산점수
	private float totalGrade; // 최종점수
	private int allAttendCnt; // 총수업일수
	private int pastAttendCnt; // 출석일수
	private int leftAttendCnt; // 남은출석일수
	private float progress; //진행률
	

	public AttendInfoAnalysis() {
		super();
		// TODO Auto-generated constructor stub
	}
	
	
	public String getCustId() {
		return custId;
	}


	public void setCustId(String custId) {
		this.custId = custId;
	}


	public String getCustName() {
		return custName;
	}


	public void setCustName(String custName) {
		this.custName = custName;
	}


	public int getAbsenceCnt() {
		return absenceCnt;
	}


	public void setAbsenceCnt(int absenceCnt) {
		this.absenceCnt = absenceCnt;
	}


	public int getEarlyLeavingCnt() {
		return earlyLeavingCnt;
	}


	public void setEarlyLeavingCnt(int earlyLeavingCnt) {
		this.earlyLeavingCnt = earlyLeavingCnt;
	}


	public int getLateCnt() {
		return lateCnt;
	}


	public void setLateCnt(int lateCnt) {
		this.lateCnt = lateCnt;
	}


	public int getEarlylateCnt() {
		return earlylateCnt;
	}


	public void setEarlylateCnt(int earlylateCnt) {
		this.earlylateCnt = earlylateCnt;
	}


	public int getNomalCnt() {
		return nomalCnt;
	}


	public void setNomalCnt(int nomalCnt) {
		this.nomalCnt = nomalCnt;
	}


	public float getAttendGrade() {
		return attendGrade;
	}


	public void setAttendGrade(float attendGrade) {
		this.attendGrade = attendGrade;
	}


	public float getTotalGrade() {
		return totalGrade;
	}


	public void setTotalGrade(float totalGrade) {
		this.totalGrade = totalGrade;
	}


	public int getAllAttendCnt() {
		return allAttendCnt;
	}


	public void setAllAttendCnt(int allAttendCnt) {
		this.allAttendCnt = allAttendCnt;
	}


	public int getPastAttendCnt() {
		return pastAttendCnt;
	}


	public void setPastAttendCnt(int pastAttendCnt) {
		this.pastAttendCnt = pastAttendCnt;
	}


	public int getLeftAttendCnt() {
		return leftAttendCnt;
	}


	public void setLeftAttendCnt(int leftAttendCnt) {
		this.leftAttendCnt = leftAttendCnt;
	}


	public float getProgress() {
		return progress;
	}


	public void setProgress(float progress) {
		this.progress = progress;
	}


	public AttendInfoAnalysis(String custId, String custName, int absenceCnt,
			int earlyLeavingCnt, int lateCnt, int earlylateCnt, int nomalCnt,
			float attendGrade, float totalGrade, int allAttendCnt,
			int pastAttendCnt, int leftAttendCnt, float progress) {
		super();
		this.custId = custId;
		this.custName = custName;
		this.absenceCnt = absenceCnt;
		this.earlyLeavingCnt = earlyLeavingCnt;
		this.lateCnt = lateCnt;
		this.earlylateCnt = earlylateCnt;
		this.nomalCnt = nomalCnt;
		this.attendGrade = attendGrade;
		this.totalGrade = totalGrade;
		this.allAttendCnt = allAttendCnt;
		this.pastAttendCnt = pastAttendCnt;
		this.leftAttendCnt = leftAttendCnt;
		this.progress = progress;
	}


	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((custId == null) ? 0 : custId.hashCode());
		return result;
	}
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		AttendInfoAnalysis other = (AttendInfoAnalysis) obj;
		if (custId == null) {
			if (other.custId != null)
				return false;
		} else if (!custId.equals(other.custId))
			return false;
		return true;
	}
	@Override
	public String toString() {
		return "AttendInfoAnalysis [custId=" + custId + ", custName="
				+ custName + ", absenceCnt=" + absenceCnt
				+ ", earlyLeavingCnt=" + earlyLeavingCnt + ", lateCnt="
				+ lateCnt + ", earlylateCnt=" + earlylateCnt + ", nomalCnt="
				+ nomalCnt + ", attendGrade=" + attendGrade + ", totalGrade="
				+ totalGrade + ", allAttendCnt=" + allAttendCnt
				+ ", pastAttendCnt=" + pastAttendCnt + ", leftAttendCnt="
				+ leftAttendCnt + ", progress=" + progress + "]";
	}



	
	
}
